<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html >
<head>
<meta charset="UTF-8">
<title><?php global $_G; if(isset($selfTitle)) echo $selfTitle;?></title>

<link rel="stylesheet" type="text/css" href="<?php echo MY_CDN;?>/css/bootstrap/bootstrap.edit.css" />
<link rel="stylesheet" type="text/css" href="<?php echo MY_CDN;?>/admin/css/admin.css" />
<script type="text/javascript" src="<?php echo MY_CDN;?>/js/jquery.1.8.0.min.js"></script>
<script type="text/javascript">
var Y = {
	'_CDN_' : '<?php echo MY_CDN; ?>',
	'_ROOT_' : '__ROOT__',
	'_APP_' : '__APP__',
	'_AID_' : '<?php if(isset($_G['adminId'])) echo $_G['adminId']; else echo '-1'; ?>'
};
</script>
<script type="text/javascript" src="<?php echo MY_CDN;?>/admin/js/common.js"></script>
<script type="text/javascript" src="<?php echo MY_CDN;?>/js/SysUtil.js"></script>

<style type="text/css" rel="stylesheet">
.page{clear:both;padding:15px 0;text-align:center}
.page a,.page a:visited{background-color:#F6F6F6;border:1px solid #D7D7D7;color:#333333;margin-right:6px;padding: 6px;line-height:15px;text-decoration:none}
.page a:hover {margin-right: 6px;border: 1px solid #9EC4D7;color: #033D5A;	background: #E4EFF5;padding: 6px;text-decoration:none}
.page a:active{margin-right: 6px;padding: 6px;line-height:15px}
.page span.current {FONT-WEIGHT: bold;	color: #000;margin-right: 6px;padding: 6px}
.page span.disabled{color: #333;margin-right: 6px;padding: 6px}
.page span.quantity{color: #333;margin-right: 6px;padding: 6px}
</style>
</head>
<body>
	<div class="y-container">
		<div class="y-pagetitle">
			邮箱设置
		</div>
		<div class="y-toolbar">
			<font color="red">谨慎修改</font>
		</div>
		<div class="y-list">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td >邮箱服务器</td>
					<td ><input type="text" id="host" value="<?php echo ($data['host']); ?>"/></td>
				</tr>
				<tr>
					<td >端口</td>
					<td ><input type="text" id="port" value="<?php echo ($data['port']); ?>"/></td>
				</tr>
				<tr>
					<td >用户名</td>
					<td ><input type="text" id="username" value="<?php echo ($data['username']); ?>"/></td>
				</tr>
				<tr>
					<td >密码</td>
					<td ><input type="text" id="password" value="<?php echo ($data['password']); ?>"/></td>
				</tr>
				<tr>
					<td >显示邮箱名</td>
					<td ><input type="text" id="sender_email" value="<?php echo ($data['sender_email']); ?>"/></td>
				</tr>
				<tr>
					<td >显示发送者email</td>
					<td ><input type="text" id="sender_name" value="<?php echo ($data['sender_name']); ?>"/></td>
				</tr>
				<tr>
					<td >&nbsp;</td>
					<td ><input type="button" value="保存" class="btn btn-success"/></td>
				</tr>
				<tr>
					<td >测试</td>
					<td >
						<br />
						<input type="text" id="postto" />（ Email ）<br />
						<textarea id="content" rows="4" class="input-xlarge">这是来自太离谱的测试邮件</textarea>（ 内容 ）<br />
						<input type="button" value="发送" class="btn btn-inverse" onclick="testEmail(this)"/>
					</td>
				</tr>
			</table>
		</div>
		<div class="y-toolbar">
			&nbsp;
		</div>
	</div>
<script type="text/javascript" src="<?php echo MY_CDN; ?>/js/YPostForm.js"></script>
<script type="text/javascript" src="<?php echo MY_CDN; ?>/admin/js/email.js"></script>
</body>
</html>